﻿using System.Collections.Generic;
using System.Windows;
using CommonControlLibrary;
using System;

namespace RibbonControlLibrary
{
    public class DesignWindow : IDesignWindow
    {
        private RibbonMainWindow _window;
        #region IDesignWindow 成员
        public ISplash GetSplash { get; set; }

        public System.Windows.Window GetMainWindow()
        {
            GetSplash.SetProgress(50, "正在加载控件……");
            _window = new RibbonMainWindow();
            GetSplash.SetProgress(100, "加载完成……");
            GetSplash.CloseSplash();
            return _window;
        }

        public void CreateResourceDictionary(out IEnumerable<ResourceDictionary> resourceList)
        {
            //Uri uri = new Uri("Fluent;Component/Themes/Office2010/Silver.xaml", UriKind.Relative);
            //ResourceDictionary dic = new ResourceDictionary();
            //dic.Source = uri;
            resourceList = new ResourceDictionary[] {
               
            };
        }

        public void SaveDocumentContent()
        {
            //if (_window != null)
            //    _window.SaveDocumentContent();
        }
        #endregion
    }
}
